<?php
//Include the 2 important files
require_once("functions.php");
require_once("Connections/cnn.php");

	session_start();
	$ID = $_SESSION['memberID'];
	
    // Lấy giá trị pass
    $pass = $_REQUEST['CurPass']; 
	$encryptPass = MD5($pass);
     
	$execSQL = @mysql_query("SELECT Password FROM Members where ID = '{$ID}';");
	$rs = @mysql_fetch_array($execSQL);
	$QPass = $rs['Password'];
	
    if($encryptPass == $QPass)
    {
		echo "true";
		//echo "<img src='images/tick.png' width='20px' height='20px' >"; 
    }
    else
    {
		echo "false";
		//echo "<h3 id='error'>&nbsp;Password is wrong</h3>";
    }



?>